package com.ulic.customerManApplication.memberenjoymodule.bo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.ulic.customerManApplication.usermodule.bo.User;

@Entity
@Table(name="T_GYW_MEMENJOYACT")
@SequenceGenerator(name="memberEnjoy_seq",sequenceName="S_GYW_MEMBERENJOY_ID")
public class MemberEnjoyActivity implements Serializable{

	/**
	 * 会员专享活动
	 */
	private static final long serialVersionUID = 1L;
	private int id;//编号
	private String activityDate;//活动日期
	private String enjoyActivity;//专享项目
	private String organizeFee;//组织费用
	private Integer participantsNum;//参与人数
	private String activityPlace;//活动地点
	
	private String subCompany;//所属机构
	
	private String subCity;//所属机构
	
	private String subComName;//分公司名称
	
	private String subCityName;//中支名称
	
	private User user;//创建者
	
	private Date createDate;//创建日期
	private String oaSph;//OA审批号
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="memberEnjoy_seq")
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getActivityDate() {
		return activityDate;
	}
	public void setActivityDate(String activityDate) {
		this.activityDate = activityDate;
	}
	public String getEnjoyActivity() {
		return enjoyActivity;
	}
	public void setEnjoyActivity(String enjoyActivity) {
		this.enjoyActivity = enjoyActivity;
	}
	public String getOrganizeFee() {
		return organizeFee;
	}
	public void setOrganizeFee(String organizeFee) {
		this.organizeFee = organizeFee;
	}
	public Integer getParticipantsNum() {
		return participantsNum;
	}
	public void setParticipantsNum(Integer participantsNum) {
		this.participantsNum = participantsNum;
	}
	public String getActivityPlace() {
		return activityPlace;
	}
	public void setActivityPlace(String activityPlace) {
		this.activityPlace = activityPlace;
	}
	 
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY, optional = false)   
    @JoinColumn(name="UM_USER_ID")
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getSubCompany() {
		return subCompany;
	}
	public void setSubCompany(String subCompany) {
		this.subCompany = subCompany;
	}
	public String getSubCity() {
		return subCity;
	}
	public void setSubCity(String subCity) {
		this.subCity = subCity;
	}
	public String getSubComName() {
		return subComName;
	}
	public void setSubComName(String subComName) {
		this.subComName = subComName;
	}
	public String getSubCityName() {
		return subCityName;
	}
	public void setSubCityName(String subCityName) {
		this.subCityName = subCityName;
	}
	public String getOaSph() {
		return oaSph;
	}
	public void setOaSph(String oaSph) {
		this.oaSph = oaSph;
	}
	
	
}
